﻿#ifndef HOTELPLATFORMSERVER_H
#define HOTELPLATFORMSERVER_H

#include <QMainWindow>
#include "usermanage.h"
#include "msgserver.h"
#include "pictureshow.h"
#include "hotelmanage.h"
#include "configoperate.h"

namespace Ui {
class HotelPlatformServer;
}

class HotelPlatformServer : public QMainWindow
{
    Q_OBJECT

public:
    explicit HotelPlatformServer(QWidget *parent = nullptr);
    ~HotelPlatformServer();

public slots:
    void slotUploadPicSuccessed();
    void slotShowImageServer(const QImage &image);
    void slotSaveHouseImage(const QString & houseID, const QImage& image);
    void slotSaveHotelImage(const QString & hotelID, const QImage& image);
    void slotSaveUserCertImage(const QString & hotelID, const QImage& image);
    void slotSaveUserHeadImage(const QString & hotelID, const QImage& image);
    void slotSaveCommentImage(const QString & commentID, const QImage& image);

private slots:
    void on_actionUserManage_triggered();
    void on_actionHotelManage_triggered();

private:
    Ui::HotelPlatformServer *ui;

    QString m_currentUserID;
    QString m_currentHouseID;
    QString m_currentHotelID;
    QString m_currentCommentID;
    int m_saveImageCount;

    UserManage *m_userManage;
    MsgServer *m_msgServer;
    PictureShow *m_pictureShow;
    HotelManage *m_hotelManage;
};

#endif // HOTELPLATFORMSERVER_H
